import java.util.*;

public class Main {

    public static int n;
    public static int len;
    public static char[] symbol = new char[]{' ', '+', '-'};
    public static List<char[]> list = new ArrayList<>(); //保存符号数组
    public static int[] arr;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        n = sc.nextInt();
        arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = i + 1;
        }

        len = n - 1;
        char[] ch = new char[len];

//        ch = new char[]{' ', '+', '+', '+', '-', '-'};
//        System.out.println(isZero(arr, ch));

        dfs(ch, 0);

        for (char[] ch1 : list) {
            for (int i = 0; i < n; i++) {
                System.out.print(arr[i]);
                if (i < len) {
                    System.out.print(ch1[i]);
                }
            }
            System.out.println();
        }

        sc.close();
    }

    /**
     *
     * @param index ch 下标
     */
    public static void dfs(char[] ch, int index) {
        if (index == len) {
            if (isZero(arr, ch)) {
                list.add(ch.clone());
            }
            return;
        }

        for (int i = 0; i < 3; i++) {
            ch[index] = symbol[i];
            dfs(ch, index + 1);
        }
    }

    /**
     * 判断加入符号后总和是否为 0
     * @param arr
     * @param ch
     * @return
     */
    public static boolean isZero(int[] arr, char[] ch) {
        int sum = 0;
        Stack<Integer> stack = new Stack<>();
        stack.push(arr[0]);
        for (int i = 1; i < n; i++) {
            char ch1 = ch[i - 1];
            if (ch1 == ' ') {
                stack.push(stack.pop() * 10 + arr[i]);
            } else {
                stack.push(arr[i]);
            }
        }
        int size = stack.size();
        int[] arr1 = new int[size];
        for (int i = 0; i < size; i++) {
            arr1[i] = stack.pop();
        }
        int index = size - 1;
        sum = arr1[index--];
        for (int i = 0; i < len; i++) {
            if (ch[i] == ' ') {
                continue;
            } else {
                if (ch[i] == '+') {
                    sum += arr1[index--];
                } else {
                    sum -= arr1[index--];
                }
            }
        }
        return sum == 0;
    }
}
